
/*http里面有处理ajax的方法，二次封装*/
import HTTP from "../utils/http";

export default class IndexModel extends HTTP{

  getData(){
    return new Promise((resolve, reject)=>{
      this.ajaxGet("data.json",'',{
        success(res){
          resolve(res);
        },
        error(err){
          reject(err);
        }
      })
    });
  }

}
